package com.fong.microservice.consumer.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.fong.microservice.consumer.service.MsUserService;



@RestController
public class MsUserController {

	@Autowired
	private MsUserService userService;
	
	@RequestMapping("/user/list")
	public Object list( HttpServletRequest request) {
		System.out.println(  );
		System.err.println( request.getLocalAddr( ) );
		System.err.println(  );
		return userService.list( );
	}
}
